﻿using AutoMapper;
using Newtonsoft.Json;
using Superadmin.Net.Model;

namespace Superadmin.Net.Repository.Base
{
    public class BaseRepository<TEntity> : IBaseRepository<TEntity> where TEntity : class, new()
    {

        public async Task<List<TEntity>> Query()
        {
            await Task.CompletedTask;
            var data = "[{ \"Id\":18,\"Name\":\"namename\"}]";
            return JsonConvert.DeserializeObject<List<TEntity>>(data) ?? new List<TEntity>();
        }
    }
}
